package com.dwd.servicemanager.pojo.dto;

import com.dwd.basic.pojo.BaseBean;
import com.dwd.servicemanager.pojo.Product;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/21 19:22
 * @Version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ProductDto extends BaseBean {
    /**
     * 服务名
     */
    private String name;
    private String resources;
    /**
     * 售价
     */
    private BigDecimal saleprice;
    private Date offsaletime = new Date();
    private Date onsaletime;
    /**
     * 状态  默认下架
     */
    private Long state = 0L;
    /**
     * 成本价
     */
    private String costprice;
    /**
     * 创建时间
     */
    private Date createtime = new Date();
    /**
     * 销量  默认为0
     */
    private Long salecount = 0L;
    /**
     * 详情
     */
    private String intro;
    /**
     * 预约通知
     */
    private String orderNotice;
    /**
     * 商品
     */
    private Product product;

}
